package vn.vfriends.soffice.service.impl;

import java.util.List;
import javax.inject.Inject;
import vn.vfriends.soffice.facade.RoleFacade;
import vn.vfriends.soffice.model.Role;
import vn.vfriends.soffice.service.RoleService;
/**
 *
 * @author chaungoctuan@gmail.com
 */
public class RoleServiceImpl implements RoleService {

    @Inject private RoleFacade roleFacade;
    
    @Override
    public void create(Role role) throws Exception {
        roleFacade.create(role);
    }

    @Override
    public void edit(Role role) throws Exception {
        roleFacade.edit(role);
    }

    @Override
    public void remove(Role role) throws Exception {
        roleFacade.remove(role);
    }

    @Override
    public Role find(Object id) {
        return roleFacade.find(id);
    }

    @Override
    public List<Role> findAll() {
        return roleFacade.findAll();
    }

    @Override
    public Role findByCode(String code) {
        return roleFacade.findByCode(code);
    }
    
    @Override
    public Role findByName(String name) {
        return roleFacade.findByName(name);
    }

    @Override
    public List<Role> findRange(int[] range) {
        return roleFacade.findRange(range);
    }

    @Override
    public int count() {
        return roleFacade.count();
    }

}
